package com.jike.shop.cloud.service.strategy;

import com.jike.shop.cloud.entity.OrderInfo;
import com.jike.shop.cloud.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("syncPay")
public class SyncPay implements PayStrategy{
    @Autowired
    private OrderInfoService orderInfoService;

    @Override
    public void pay(OrderInfo orderInfo, String transcationId) {
        orderInfoService.syncPay(orderInfo, transcationId);
    }
}
